<?php /* Smarty version 2.6.26, created on 2014-02-21 12:14:43
         compiled from default/public/member_commend.html */ ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link type="text/css" rel="stylesheet" href="view/default/style/basic.css" />
<link type="text/css" rel="stylesheet" href="view/default/style/member.css" />
<script type="text/javascript" src="view/default/js/ajax.js"></script>
<script type="text/javascript" src="view/default/js/member.js"></script>
<title>在线商城会员中心</title>
</head>
<body>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "default/public/header.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<div id="sait">
    当前位置：<a href="./">首页</a> &gt; 商品评价
</div>

<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "default/public/member_sidebar.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<form method="post">
<div id="main">
    <h2>商品评价</h2>
    <div class="commend">
        <a href="?a=details&navid=<?php echo $this->_tpl_vars['oneGoods']['nav']; ?>
&goodsid=<?php echo $this->_tpl_vars['oneGoods']['id']; ?>
" target="_blank"><img src="<?php echo $this->_tpl_vars['oneGoods']['thumbnail_small']; ?>
" /></a>
        <input type="hidden" name="goodsid" value="<?php echo $_GET['goodsid']; ?>
" />
        <input type="hidden" name="orderid" value="<?php echo $_GET['orderid']; ?>
" />
        <input type="hidden" name="attr" value="<?php $_from = $this->_tpl_vars['oneGoods']['attr']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['value']):
?><?php echo $this->_tpl_vars['key']; ?>
:<?php $_from = $this->_tpl_vars['value']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['k'] => $this->_tpl_vars['v']):
?><?php echo $this->_tpl_vars['v']; ?>
 <?php endforeach; endif; unset($_from); ?>;<?php endforeach; endif; unset($_from); ?>" />
        <dl>
            <dt><a href="?a=details&navid=<?php echo $this->_tpl_vars['oneGoods']['nav']; ?>
&goodsid=<?php echo $this->_tpl_vars['oneGoods']['id']; ?>
" target="_blank"><?php echo $this->_tpl_vars['oneGoods']['name']; ?>
</a></dt>
            <dd>
            <?php $_from = $this->_tpl_vars['oneGoods']['attr']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['value']):
?>
                <?php echo $this->_tpl_vars['key']; ?>
:
                <?php $_from = $this->_tpl_vars['value']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['k'] => $this->_tpl_vars['v']):
?>
                    <?php echo $this->_tpl_vars['v']; ?>

                <?php endforeach; endif; unset($_from); ?>;
            <?php endforeach; endif; unset($_from); ?>
            </dd>
            <?php if ($this->_tpl_vars['oneCommend'][0]): ?>
            <dd style="font-size:15px;color:#360;">您已经参与了评论，以下是您上一次的评价内容：</dd>
            <dd>评分：
                <?php if ($this->_tpl_vars['oneCommend'][0]->star == 5): ?><span class="star">★★★★★</span><?php endif; ?>
                <?php if ($this->_tpl_vars['oneCommend'][0]->star == 4): ?><span class="star">★★★★</span><?php endif; ?>
                <?php if ($this->_tpl_vars['oneCommend'][0]->star == 3): ?><span class="star">★★★</span><?php endif; ?>
                <?php if ($this->_tpl_vars['oneCommend'][0]->star == 2): ?><span class="star">★★</span><?php endif; ?>
                <?php if ($this->_tpl_vars['oneCommend'][0]->star == 1): ?><span class="star">★</span><?php endif; ?>
            </dd>
            <dd>内容：<?php echo $this->_tpl_vars['oneCommend'][0]->content; ?>
</dd>
            <?php if ($this->_tpl_vars['oneCommend'][0]->re_content): ?>
            <dd style="color:red;">商家回复：<?php echo $this->_tpl_vars['oneCommend'][0]->re_content; ?>
</dd>
            <?php endif; ?>
            <?php else: ?>
            <dd>评分:<input type="radio" name="star" value="5" checked="checked"/><span class="star">★★★★★</span>
                    <input type="radio" name="star" value="4"/><span class="star">★★★★</span>
                    <input type="radio" name="star" value="3"/><span class="star">★★★</span>
                    <input type="radio" name="star" value="2"/><span class="star">★★</span>
                    <input type="radio" name="star" value="1"/><span class="star">★</span>
            </dd>
            <dd><textarea name="content"></textarea></dd>
            <dd><input type="submit" name="send" value="发表评价" style="cursor:pointer;"/>　<a href="?a=member&m=order_details&id=<?php echo $_GET['orderid']; ?>
">[返回订单]</a></dd>
            <?php endif; ?>    
        </dl>
    </div>
</div>
</form>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'default/public/footer.html', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
</body>
</html>